<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <script src="js/snow.js"></script>
    <style>
        * {
            margin: 0;
            padding: 0;
        }
        
        #box {
            width: 1000px;
            height: 600px;
            background: #000000;
            border: 5px solid red;
            margin: 20px auto;
            position: relative;
        }
    </style>
</head>

<body>
    <div id="box"></div>
</body>
<script>
    var s = new snow({
        id: 'box',
        times: 30,
        url: 'img/snow.png',
        fx: -1
    });
    s.loop()
</script>

</html>